package com.system.arrangement.service;

import com.system.arrangement.been.RegistrationPool;

public class BinaryObserver extends Observer{
    public BinaryObserver(Subject subject){
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public RegistrationPool update() {
        RegistrationPool registrationPool = new RegistrationPool();
        registrationPool.setPoolDt(subject.getArrangementDTO().getArrangementDt());
        registrationPool.setBusinessId(subject.getArrangementDTO().getBusinessId());
        return registrationPool;
    }
}
